package com.yjq.blog.article.service;

import com.yjq.blog.article.vo.ArticleAddVO;
import com.yjq.blog.article.vo.ArticleListResponseVO;
import com.yjq.blog.article.vo.ArticleSearchVO;
import com.yjq.blog.article.vo.ArticleUpdateVO;
import com.yjq.blog.utils.Page;

public interface ArticleService {

    Page<ArticleListResponseVO> pageArticle(ArticleSearchVO searchVO, Integer pageNo, Integer pageSize);

    Boolean addArticle(ArticleAddVO articleVO, Integer userId);

    ArticleAddVO getArticleById(Integer id);

    Boolean updateArticle(ArticleUpdateVO articleVO, Integer userId);

}
